
window.onload=function(){
   $('#sub_btn').click(function(){
	   var name=$('form [name="name"]').val();
	   var phone=$('form [name="phone"]').val();
	   
	   if(name==""||name=="null"){
		   alert('姓名不能为空');   
	   }else if(phone==''||phone=='null'){
		   alert('电话不能为空');   
	   }else if(!(/^1[3458]\d{9}$/.test(phone))){
		   alert('请输入正确的电话号码');   
	   }else{
		   $("#myform").submit();
	   }
   });	
   $("#reset_btn").click(function(){
   	 $('#myform')[0].reset();
   });
      $('.fast_div .left .list2 a,.fast_div .left .list4 a,.fast_div .left .list_s a,.fast_div .right .list_s a,.fast_div .right .list1 a,.fast_div .right .list3 a,.fast_div .right .list5 a').hover(function(){
	   $(this).animate({fontSize:"24px"},100);
   },function(){
	   $('.fast_div .left .list2 a,.fast_div .right .list3 a,.fast_div .right .list5 a').animate({fontSize:"14px"},100);  
	   $('.fast_div .left .list4 a').animate({fontSize:"18px"},100);  
	   $('.fast_div .right .list_s a,.fast_div .left .list_s a').animate({fontSize:"16px"},100); 
	   $('.fast_div .right .list1 a').animate({fontSize:"20px"},100); 
   });
}